Skip to content

[PromQL] PromQL Translator Refactor#144953

Merged
sidosera merged 3 commits intoelastic:mainfrom
sidosera:feature/promql-without-cleanup
Mar 27, 2026
Merged

[PromQL] PromQL Translator Refactor#144953
sidosera merged 3 commits intoelastic:mainfrom
sidosera:feature/promql-without-cleanup

Conversation

@sidosera
Copy link
Copy Markdown
Contributor

@sidosera sidosera commented Mar 25, 2026

This diff is primarily a clean-up from #144261. In introduces LabelSet abstraction to encapsulate aggregate's label (groupings + aggregates) manipulation operations.

Stack:

@sidosera sidosera force-pushed the feature/promql-without-cleanup branch from 6c9c6e0 to b64f3ff Compare March 25, 2026 16:10
@sidosera sidosera changed the title [PromQL] Translator cleanup [PromQL] PromQL Translator Refactor Mar 25, 2026
@sidosera sidosera force-pushed the feature/promql-without-cleanup branch 2 times, most recently from 1d39414 to 0555b22 Compare March 26, 2026 01:41
@sidosera sidosera marked this pull request as ready for review March 26, 2026 01:45
@sidosera sidosera added >non-issue :StorageEngine/PromQL PromQL support for Elastic labels Mar 26, 2026
@sidosera sidosera requested review from a team and felixbarny March 26, 2026 01:45
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@sidosera sidosera force-pushed the feature/promql-without-cleanup branch from 0555b22 to dcdebaf Compare March 26, 2026 14:17
// Self-resolution: at the innermost level there is no child aggregation to resolve against.
// This just splits declared labels into keys (_timeseries) vs attributes (concrete labels).
// var spec = labels.apply(labels);
// List<Attribute> all = new ArrayList<>(labels.excluded());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some commented out code here and a bit below.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will remove in in a follow-up PR.

@sidosera sidosera merged commit ce948d0 into elastic:main Mar 27, 2026
39 of 40 checks passed
@sidosera sidosera deleted the feature/promql-without-cleanup branch March 27, 2026 12:50
mamazzol pushed a commit to mamazzol/elasticsearch that referenced this pull request Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants